//
//  CarsHeaderFooterView.m
//  LearningFMDB
//
//  Created by dihuijun on 17/9/13.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import "CarsHeaderFooterView.h"
#import "Person.h"
#define screenW [[UIScreen mainScreen]bounds].size.width
#define screenH [[UIScreen mainScreen]bounds].size.height
@interface CarsHeaderFooterView()

/**   名字   */
@property (nonatomic, strong) UILabel *lblName;
@end
@implementation CarsHeaderFooterView
/**   设置背景颜色 */
-(void)setUpHeaderFooterView{
    [self setHeaderFooterBackgroundColor:[UIColor whiteColor]];
}
/** 初始化控件*/
-(void)bulidHeaderFooterSubViews{
    self.lblName = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, screenW, 44)];
    self.lblName.textColor = [UIColor blackColor];
    self.lblName.font = [UIFont systemFontOfSize:14.0];
    self.lblName.textAlignment = NSTextAlignmentLeft;
    [self addSubview:self.lblName];
}
/** 加载数据 */
-(void)loadHeaderFooterData{
    Person *p = self.data;
    self.lblName.text = [NSString stringWithFormat:@"%@ 的所有车",p.name];
}

@end
